<!-- [Left menu] start -->
<div class="leftmenu">

	<h1 id="pageinfo"> </h1>
	
	<ul id="tabs" class="quickmenu">
		<li><a href="#one"><?php echo __("Storage settings", "album") ?></a></li>
		<!-- <li><a href="#two">Theme settings</a></li> -->
	</ul>
	<div class="quickend"></div>

</div>
<!-- [Left menu] end -->

<!-- [Content] start -->
<div class="content slim">

<h1 id="settings"><?php echo sprintf(__("%s settings", $this->template['module']), ucfirst($storage)) ?></h1>

<form class="settings" action="<?=site_url('admin/album/settings/' . $storage)?>" method="post" accept-charset="utf-8">
		
		<ul>
			<li><input type="submit" name="submit" value="<?php echo __("Save Settings", "album") ?>" class="input-submit" /></li>
			<li><a href="<?=site_url('admin')?>" class="input-submit last"><?php echo __("Cancel", "album") ?></a></li>
		</ul>
		
		<br class="clearfloat" />

		<hr />
		
		<?php if ($notice = $this->session->flashdata('notification')):?>
		<p class="notice"><?=$notice;?></p>
		<?php endif;?>
		
		<p><?php echo sprintf(__("Use this page to change the settings for the %s storage.", $this->template['module']), $storage)?></p>
		
		<div id="one">
		<?php if (isset($fields)) : foreach ($fields as $field): ?>
			<label for="<?php echo $field['input'] ?>"><?php echo $field['label'] ?></label>
			<input type="text" name="<?php echo $field['input'] ?>" value="<?=isset($this->album->album_settings->$field['input'])?$this->album->album_settings->$field['input']:$field['default']?>" id="<?php echo $field['input'] ?>" class="input-text" /><br /><?php if(isset($field['info'])) echo $field['info'] . "<br />"; ?>
		<?php endforeach; endif; ?>
</div>
	</form>
</div>
<!-- [Content] end -->
